Package com.cisco.pt.ipc.sim.impl
Class OSPFNeighborImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.OSPFNeighborImpl
- All Implemented Interfaces:
IPCData,OSPFNeighbor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDr()booleanbooleangetPort()intgetState()voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAddress(IPAddress address) voidvoidsetBackupDr(IPAddress backupDr) voidsetDeadInterval(Short deadInterval) voidvoidsetIsMaster(boolean isMaster) voidsetIsVirtual(boolean isVirtual) voidvoidvoidsetPriority(Short priority) voidsetRouterId(IPAddress routerId) voidsetSeqNumber(int seqNumber) voidsetState(OSPFNeighborState state) Methods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVector
-
Field Details
-
routerId
-
address
-
port
-
priority
-
state
-
option
-
dr
-
backupDr
-
deadInterval
-
areaId
-
isMaster
protected boolean isMaster -
seqNumber
protected int seqNumber -
isVirtual
protected boolean isVirtual
-
-
Constructor Details
-
OSPFNeighborImpl
public OSPFNeighborImpl()
-
-
Method Details
-
getRouterId
- Specified by:
getRouterIdin interfaceOSPFNeighbor- Returns:
- IPAddress Returns a IPAddress
-
setRouterId
- Specified by:
setRouterIdin interfaceOSPFNeighbor- Parameters:
routerId- Takes in a parameter of routerId
-
getAddress
- Specified by:
getAddressin interfaceOSPFNeighbor- Returns:
- IPAddress Returns a IPAddress
-
setAddress
- Specified by:
setAddressin interfaceOSPFNeighbor- Parameters:
address- Takes in a parameter of address
-
getPort
- Specified by:
getPortin interfaceOSPFNeighbor- Returns:
- String Returns a String
-
setPort
- Specified by:
setPortin interfaceOSPFNeighbor- Parameters:
port- Takes in a parameter of port
-
getPriority
- Specified by:
getPriorityin interfaceOSPFNeighbor- Returns:
- Short Returns a Short
-
setPriority
- Specified by:
setPriorityin interfaceOSPFNeighbor- Parameters:
priority- Takes in a parameter of priority
-
getState
- Specified by:
getStatein interfaceOSPFNeighbor- Returns:
- OSPFNeighborState Returns a OSPFNeighborState
-
setState
- Specified by:
setStatein interfaceOSPFNeighbor- Parameters:
state- Takes in a parameter of state
-
getOption
- Specified by:
getOptionin interfaceOSPFNeighbor- Returns:
- Short Returns a Short
-
setOption
- Specified by:
setOptionin interfaceOSPFNeighbor- Parameters:
option- Takes in a parameter of option
-
getDr
- Specified by:
getDrin interfaceOSPFNeighbor- Returns:
- IPAddress Returns a IPAddress
-
setDr
- Specified by:
setDrin interfaceOSPFNeighbor- Parameters:
dr- Takes in a parameter of dr
-
getBackupDr
- Specified by:
getBackupDrin interfaceOSPFNeighbor- Returns:
- IPAddress Returns a IPAddress
-
setBackupDr
- Specified by:
setBackupDrin interfaceOSPFNeighbor- Parameters:
backupDr- Takes in a parameter of backupDr
-
getDeadInterval
- Specified by:
getDeadIntervalin interfaceOSPFNeighbor- Returns:
- Short Returns a Short
-
setDeadInterval
- Specified by:
setDeadIntervalin interfaceOSPFNeighbor- Parameters:
deadInterval- Takes in a parameter of deadInterval
-
getAreaId
- Specified by:
getAreaIdin interfaceOSPFNeighbor- Returns:
- IPAddress Returns a IPAddress
-
setAreaId
- Specified by:
setAreaIdin interfaceOSPFNeighbor- Parameters:
areaId- Takes in a parameter of areaId
-
getIsMaster
public boolean getIsMaster()- Specified by:
getIsMasterin interfaceOSPFNeighbor- Returns:
- boolean Returns a boolean
-
setIsMaster
public void setIsMaster(boolean isMaster) - Specified by:
setIsMasterin interfaceOSPFNeighbor- Parameters:
isMaster- Takes in a parameter of isMaster
-
getSeqNumber
public int getSeqNumber()- Specified by:
getSeqNumberin interfaceOSPFNeighbor- Returns:
- int Returns a int
-
setSeqNumber
public void setSeqNumber(int seqNumber) - Specified by:
setSeqNumberin interfaceOSPFNeighbor- Parameters:
seqNumber- Takes in a parameter of seqNumber
-
getIsVirtual
public boolean getIsVirtual()- Specified by:
getIsVirtualin interfaceOSPFNeighbor- Returns:
- boolean Returns a boolean
-
setIsVirtual
public void setIsVirtual(boolean isVirtual) - Specified by:
setIsVirtualin interfaceOSPFNeighbor- Parameters:
isVirtual- Takes in a parameter of isVirtual
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Specified by:
readin classIPCDataImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-